<?php
// ===================== Just a side note to explain the foldertree ========================= \\

// Depending on what server you are using, the files you are including should be in a folder which is not available via a browser
// In Plesk environments this is the includes folder, in a DirectAdmin environment this is the private_html folder

// ============================================================================================ \\

// This file defines some constants for paths and urls
// You really want this, so when you decide to change map names you just edit one file
require_once("../includes/paths.php");
?>
<!-- Make sure the doctype is correct -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title>Geoplaza</title>
	<meta name="description" content="Geoplaza website" />
	<meta http-equiv="pragma" content="no-cache" />

	<link rel="stylesheet" href="/css/design.css" type="text/css" />
</head>
<body>
<div id="header">
	<img alt="cmn logo" src="<?=IMAGES_URL?>/logo.png" />
	<ul id="nav">
		<!-- In the .htaccess file you can see the mod_rewrite is enable for nicer URL's -->
		<li><a class="active" title="Studenten pagina" href="/page/studenten">Studenten</a></li>
		<li><a title="Bedrijven pagina" href="/page/bedrijven">Bedrijven</a></li>
		<li><a title="GRO contact" href="/page/contact">Contact</a></li>
	</ul>
	<img alt="cmn logo" src="<?=IMAGES_URL?>header.png" />
</div>
<div id="content">
	<ul id="navcontect">
		<li><a class="active" title="GEO Home" href="/page/home">Home</a></li>
		<li><a class="active" title="GEO Nieuws" href="/page/nieuws">Nieuws</a></li>
		<li><a title="Kenniscentrum" href="/page/kenniscentrum">Kenniscentrum</a></li>
		<li><a title="Sponsors" href="/page/sponsors">Sponsors</a></li>
		<li><a title="Sponsors" href="/page/forum">Forum</a></li>
		<li><a title="Sponsors" href="/page/etcetera">Etcetera</a></li>
		<li><a title="Sponsors" href="/page/etcetera">Etcetera</a></li>
	</ul>
	<div id="secondmenu">
	</div>
<?php
	// When nothing is available in the global GET variable 'p', the page should be home
	// When there's something available check if the file exists and include the file
	// When the file doesn't exists show an error page
	if (empty($_GET['p']))
		$page = 'home';
	else
		$page = $_GET['p'];
	if (file_exists(SITE_FRAGMENTS_PATH.$page.".php"))
		require_once(SITE_FRAGMENTS_PATH.$page.".php");
	else
		require_once(SITE_FRAGMENTS_PATH."error.php");
	?>
</div>
</body>
</html>